package rule20;

import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Test;

/**
 * @author ChangLiang
 * @date 2020/4/15
 */
public class App {

    @Test
    @DisplayName("test image validate code send")
    public void test() {

        ValidateCodeProcessorHolder holder = new ValidateCodeProcessorHolder();
        // 生成image validate code
        holder.findValidateCodeProcessor(ValidateCodeType.IMAGE).create();
    }

    @Test
    @DisplayName("test sms validate code send")
    public void test2() {

        ValidateCodeProcessorHolder holder = new ValidateCodeProcessorHolder();
        // 生成image validate code
        holder.findValidateCodeProcessor(ValidateCodeType.SMS).create();
    }
}
